var _ = require('lodash');
var path = require("path");
var dao = require(path.join(process.cwd(),"dao/DAO"));




/**
 * 获取属性列表
 * 
 * @param  {[type]}   cat_id 分类ID
 * @param  {[type]}   sel    类型 // only:输入框(唯一)  many:后台下拉列表/前台单选框
 * @param  {Function} cb     回调函数
 */
module.exports.getGroupUserID = function(cb) {
	var groupName = "user_id";
	dao.group("ProcessModel",groupName,function(err,newgroups) {
		if(err) return cb("获取失败");
		cb(null,newgroups);
	});
}


module.exports.getGroupZhuangTai = function(cb) {
	var groupName = "yiqi_zhuangtai";
	dao.group("ProcessModel",groupName,function(err,newgroups) {
		if(err) return cb("获取失败");
		cb(null,newgroups);
	});
}

module.exports.getGroupDanWei = function(cb) {
	var groupName = "yiqi_songjiandanwei";
	dao.group("ProcessModel",groupName,function(err,newgroups) {
		if(err) return cb("获取失败");
		cb(null,newgroups);
	});
}


module.exports.getGroupZhiZaoShang = function(cb) {
	var groupName = "yiqi_zhizaoshang";
	dao.group("ProcessModel",groupName,function(err,newgroups) {
		if(err) return cb("获取失败");
		cb(null,newgroups);
	});
}


